function $(id){return document.getElementById(id)}
// var text = document.getElementById("text1").value
window.onload = function (){
     $("ipt1").addEventListener("click",function (){
          $("div1").style.display = "block";
          $("div2").style.display= "none";
          $("btn1").addEventListener("click",function (){
               $("div3").style.display = "block";
               $("div4").style.display= "none";

          })
          $("btn2").addEventListener("click",function (){
               $("div4").style.display = "none";
               $("div3").style.display= "none";
          })
     })

     $("ipt2").addEventListener("click",function (){
          $("div2").style.display = "block";
          $("div1").style.display= "none";
          $("btn1").addEventListener("click",function (){
               $("div4").style.display = "block";
               $("div3").style.display= "none";
          })
          $("btn2").addEventListener("click",function (){
               $("div4").style.display = "none";
               $("div3").style.display= "none";
          })
     })



}